<template>
  <div class="container-header-margin">
    <a-button type="primary" @click="toLogin"> 首页1 </a-button>
  </div>
</template>

<script setup>
const toLogin = () => {
  const router = useRouter();
  router.push({ path: "/login" });
};
</script>

<style lang="less" scoped></style>